<!-- 知识库弹窗 -->
<div id="create-kb-modal" class="modal">
    <div class="modal-content">
        <div class="modal-header">
            <h2>创建新知识库</h2>
            <span class="close" onclick="closeModal()">&times;</span>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <label for="kb-name">知识库名称</label>
                <input type="text" id="kb-name" placeholder="请输入知识库名称">
            </div>
            <div class="form-group">
                <label for="kb-description">知识库描述</label>
                <textarea id="kb-description" placeholder="请输入知识库描述（可选）"></textarea>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn-primary" onclick="createKnowledgeBase()">
                <i class="bi bi-plus-lg"></i>
                创建知识库
            </button>
            <button type="button" class="btn-secondary" onclick="closeModal()">
                <i class="bi bi-x-lg"></i>
                取消
            </button>
        </div>
    </div>
</div>

<div id="notification" class="notification">操作成功!</div> 